#include <stdio.h>
#include <stdlib.h>
#include <math.h>

//https://www.nowcoder.com/practice/9f3231a991af4f55b95579b44b7a01ba?tpId=13&tqId=23269&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question-ranking

int minNumberInRotateArray(int* rotateArray, int rotateArrayLen ) {
    int Mid = 0;
    int Left = 0;
    int Right = rotateArrayLen - 1;
    if (rotateArrayLen < 1) {
        return 0;
    }
    while (Left < Right) {
        Mid = (Left + Right) / 2;
        if (rotateArray[Mid] < rotateArray[Right]) {
            Right = Mid;
        } else if (rotateArray[Mid] > rotateArray[Right]) {
            Left = Mid + 1;
        } else {
            Right--;
        }
    }
    return rotateArray[Left];
}
// 1 0
int main() {
    int n = 0;
    int input = 0;
    int PosCount = 0;
    int NegCount = 0;
    double Sum = 0;
    scanf("%d", &n);
    for (int i = 0; i < n; i++) {
        scanf("%d", &input);
        if (input < 0) {
            NegCount++;
        } else if (input > 0) {
            Sum += input;
            PosCount++;
        }
    }
    printf("%d ", NegCount);
    printf("%.1f", (PosCount == 0) ? 0 : (Sum / PosCount));
    return 0;
}